import request from '@/utils/request'

// 用户登录
export function login(data) {
  return request({
    url: 'api/Login',
    method: 'post',
    data
  })
}

// 获取用户信息
export function getUserInfo() {
  return request({
    url: 'api/User/user/info',
    method: 'get',
  })
}

// 用户登出
export function logout() {
  return request({
    url: '/vue-element-admin/user/logout',
    method: 'post'
  })
} 

export function getAllUser(param) {
  return request({
    url: 'api/User/GetAll',
    method: 'get',
    param: param
  })
}